Round Time to Nearest Xmin
(9 actions, 9 KB)
0 Adjust
Get Start of Hour
Date
[CurrentDate]
»
1 Get Time Between
[0 Adjusted Date]
and
[CurrentDate
{"Date Style":"Medium","WFISO8601IncludeTime":false,"Time Style":"Long"}
]
in
Seconds
»
6
2 Calculate
[Shortcut Input]
×
60
»
3
4
5
3 Set Variable
myVar1
to
[2 Calculation Result]
4 Calculate
[2 Calculation Result]
÷
2
5 Set Variable
myVar2
to
[2 Calculation Result]
6 Calculate Expression
(
[1 Time Between Dates]
+
[myVar2]
)%
[myVar1]
-
[myVar2]
»
7 Adjust
Subtract
Date
[CurrentDate
{"Date Style":"Medium","WFISO8601IncludeTime":false,"Time Style":"Long"}
]
»
Duration
:
[6 Calculation Result]
sec
8 Stop and Output
[7 Adjusted Date]